class_name ActivableControl
extends HBoxContainer


@onready var label: Label = $Label


@export var text: String
@export var color_default: Color
@export var color_active: Color


var is_active: bool = false
var input_manager: InputManager

var _controls: Array[Control] = []

func _ready():
	label.text = text

	for control: Control in get_children():
		_controls.push_back(control)


func set_active(active: bool):
	is_active = active
	for control: Control in _controls:
		control.modulate = color_active if is_active else color_default
